<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function getSum(a,b) {
				return a+b;
			}
			
			function getSum(a,b,c) {
				return a+b+c;
			}
			
			// 无法回 undefined
			function getSum2(a,b) {
				return;
			}
		
			var result = getSum(2,3);
			alert(result);
			
			var result2 = getSum2(2,3);
			alert(result2);
			
			// 重名函数:没有方法重载，只有覆盖
			result = getSum(1,2,3);
			alert(result);
			
			
			
			
			
			
			
		</script>
	</head>
	<body>
	</body>
</html>
